package com.hejia.alauda.entity;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;

/**
 * 启动画面显示排期
 * @author hyr
 *
 */
public class SplashScreenSchedule extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2847670853032929046L;
	
	/**
	 * 设备
	 * @author hyr
	 *
	 */
	public enum Device {
		
		/**
		 * iPhone手机
		 */
		iOS,
		
		/**
		 * 安卓手机
		 */
		Android
	}
	
	@Column
	private Device device; // 设备
	
	@Column
	private Date startTime; // 开始时间
	
	@Column
	private Date endTime; // 结束时间
	
	@Column
	private Integer priority; // 优先级，数字越大优先级越高
	
	@Column
	private String description; // 描述
	
	private List<SplashScreenImage> images;

	public Device getDevice() {
		return device;
	}

	public void setDevice(Device device) {
		this.device = device;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Integer getPriority() {
		return priority;
	}

	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public List<SplashScreenImage> getImages() {
		return images;
	}

	public void setImages(List<SplashScreenImage> images) {
		this.images = images;
	}
}
